﻿using SqlSugar;
using YNTK.Common.Const;
using YNTK.Common.Entity;

namespace YNTK.VisitorsRecord.Entitys
{
    /// <summary>
    /// 访客记录基类
    /// </summary>
    [SugarTable("visitors_records")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class VisitorsRecordEntity: CLDEntityBase
    {
        /// <summary>
        /// 所属组织id
        /// </summary>
        [SugarColumn(ColumnName = "F_OrganizeId", ColumnDescription = "所属组织id")]
        public string OrganizeId { get; set; }

        /// <summary>
        /// 所属机构id
        /// </summary>
        [SugarColumn(ColumnName = "F_MechanismId", ColumnDescription = "所属机构id")]
        public string MechanismId { get; set; }

        /// <summary>
        /// 访客分类id
        /// </summary>
        [SugarColumn(ColumnName = "F_ClassifyId", ColumnDescription = "访客分类id")]
        public string ClassifyId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [SugarColumn(ColumnName = "F_Title", ColumnDescription = "标题")]
        public string Title { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        [SugarColumn(ColumnName = "F_ViewCount", ColumnDescription = "浏览次数")]
        public int ViewCount { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [SugarColumn(ColumnName = "F_Content", ColumnDescription = "内容")]
        public string Content { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]
        public long? SortCode { get; set; }
    }
}
